package com.ly.test.params;

import org.springframework.web.multipart.MultipartFile;

import javax.validation.constraints.NotNull;

/**
 * @author liuyi
 * @date 2017/01/17 16:17
 */
public class UploadParameter {

    @NotNull(message="文件不能为空")
    private MultipartFile file;

    private String param2;

    public MultipartFile getFile() {
        return file;
    }

    public void setFile(MultipartFile file) {
        this.file = file;
    }

    public String getParam2() {
        return param2;
    }

    public void setParam2(String param2) {
        this.param2 = param2;
    }
}
